import {fromJS} from 'immutable'
import {actionTypes} from './index'

const defaultState = fromJS({
    formData:{},
})


export default (state = defaultState, action)=>{
    switch(action.type){
        case actionTypes.UPDATE_FORMDATA:
            return state.set('formData',action.value)
        default:
            return state
    }
}
